home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11054 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: dawn.mmm.com!news
  2. From: kjhopps@mmm.com (Kevin J Hopps)
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Re: SUN C Single key entry with no CR reqd
  5. Followup-To: comp.lang.c,comp.lang.c++
  6. Date: 12 Mar 1996 14:52:58 GMT
  7. Organization: 3M - St. Paul, MN  55144-1000 US
  8. Message-ID: <4i434a$8nu@dawn.mmm.com>
  9. References: <4i1hr6$asm@ni1.ni.net>
  10. Reply-To: kjhopps@mmm.com
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Ed Thomson (ethomson@cinahl.com) wrote:
  14. > I am new to SUN C and was wondering how to issue a statement like
  15. > getchar or getc but not require the user to press return after hitting
  16. > the key.
  17.  
  18. It's somewhat complicated, actually.  The problem is that normally
  19. keyboard input is line buffered.  The terminal driver handles the
  20. characters and the backspaces and makes the entire line available
  21. to the application when a newline is entered.
  22.  
  23. If you want to learn more about input processing from a keyboard,
  24. run "man termio" -- that's a start.
  25. --
  26. Kevin J. Hopps, 3M Company     kjhopps@mmm.com
  27. Opinions are my own.  I don't speak for 3M.
  28.     But 3M speaks for me -- I did not write the following line:
  29.  
  30. Opinions expressed herein are my own and may not represent those of 3M.
  31.